package com.robot.matchingsystem.service.impl;

import org.springframework.stereotype.Service;
import com.robot.matchingsystem.service.matchingHand.matchingHandleService;
import com.robot.matchingsystem.utils.matchingPool;
@Service
public class matchingHandleServiceImpl implements matchingHandleService{
    public final static matchingPool pool = new matchingPool();
    @Override
    public String addPlayer(int userid, int score,int botId) {
        pool.addPlayer(userid,score);
        return "success";
    }

    @Override
    public String removePlayer(int userid) {
        pool.removePlayer(userid);
        return "success";
    }
}
